<link href="__CDN__/static/libs/layui/css/layui.css" rel="stylesheet">
<style>
	.layui-form-item .layui-form-label {
		width: 100px;
	}
	
</style>
<form id="importset-form" class="form-horizontal layui-form" role="form" data-toggle="validator" method="POST" action="">
	<div class="layui-form-item">
		<label class="layui-form-label">匹配条件:</label>
		<div class="layui-input-block">
		 <input type="checkbox" name="row[is_search_name]" value="1" title="项目名称" disabled {in name="info.is_search_name|default=1" value="1"}checked{/in}>
		 <input type="checkbox" name="row[is_search_code]" value="1" title="项目编号" disabled {in name="info.is_search_code|default=1" value="1"}checked{/in}>
		 <input type="checkbox" name="row[is_search_unit]" value="1" title="计量单位" {in name="info.is_search_unit|default=1" value="1"}checked{/in}>
		 <input type="checkbox" name="row[is_search_description]" value="1" title="项目特征" {in name="info.is_search_description|default=1" value="1"}checked{/in}>
		</div>
		<div class="layui-form-mid layui-word-aux">
			项目名称及项目编号默认必须匹配
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label">选择项目:</label>
		<div class="layui-input-inline">
			<input id="c-search_projectids" data-source="project/index"
				data-multiple="true" class="form-control selectpage" data-field="project_name"
				data-search-field="project_name" data-params='{"datalimit":"auth"}'
				data-primary-key="id" name="row[search_projectids]" type="text" value="{$info.search_projectids|default=''}">

		</div>
	</div>
	<div class="layui-form-item hide">
		<label class="layui-form-label">上下浮动比例:</label>
		<div class="layui-input-inline">
			<input id="c-float_ratio" class="form-control" name="row[float_ratio]" step="0.01"
				type="number" value="{$info.float_ratio|default=''}">
		</div>
	</div>
	<div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[id]" value="{$info.id}">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
